<template>
  <div id="bing">
    <Chart :cdata="cdata" />
  </div>
</template>

<script>
import Chart from './chart.vue';
import http from '../../../../axios/http';
export default {
  data () {
    return {
      cdata: {

      }
    }
  },
  components: {
    Chart,
  },
  mounted () {
    this.get_centerLeftData();
  },
  methods: {
    get_centerLeftData(){
      http.get('/largescreen/indexleft/').then(response=>{
        this.cdata = {
          xData: response.data.leftxdata_list,
          seriesData: response.data.leftseries_list
        }
      }).catch(error=>{
        console.log(error)
      })
    }
  }
}
</script>

<style lang="scss" scoped>
#bing {
  margin-top: -10px;
  margin-left: 10px;
}
</style>